import axios from 'axios'
export let getList=()=>{
    return async (dispatch)=>{
        let {data} =await axios.get('/list');
        console.log(data)
        dispatch({
            type:"GET_LIST",    
            payload:data
        })
    }
}


